
package com.xxx.java.servlet;

import java.io.IOException;
import java.util.List;
import java.util.Map;

import javax.servlet.ServletException;
import javax.servlet.annotation.WebServlet;
import javax.servlet.http.HttpServlet;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;

import com.xxx.javaweb.project.Base;
@WebServlet("/YouKeXinxi")//http://localhost:8080/xjdx/index
public class FindYonghuServlet extends HttpServlet{

	protected void service(HttpServletRequest request, HttpServletResponse response)
			throws ServletException, IOException {
		
		String sql ="select * from user";
		List<Map<String, Object>>list= Base.findList(sql);
		request.setAttribute("list2", list);
		request.getRequestDispatcher("YouKeXinxi.jsp").forward(request, response);
		
		
	
		
			
	}
	
}
